using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using MCromwell.StaffIntranet.Core;
using nhibernate = NHibernate;
using NHibernate.Criterion;
using NHibernate;

namespace MCromwell.StaffIntranet.Data.NHibernate
{
    public class NHibernateLookupRepository : ILookupRepository
    {
        
        public IList<Location> RetrieveLocations()
        {
            ISession session = NHibernateSessionManager.Instance.GetSession();
            return session.CreateCriteria(typeof(Location))
                            .List<Location>();
        }

    }
}
